/*
* acooly.cn Inc.
* Copyright (c) 2017 All Rights Reserved.
* create by ouwen
* date:2017-09-20
*/
package com.yiji.fintech.musfinance.web;

import com.acooly.core.common.web.AbstractJQueryEntityController;
import com.yiji.fintech.musfinance.common.utils.cache.CacheConstant;
import com.yiji.fintech.musfinance.common.utils.cache.CacheService;
import com.yiji.fintech.musfinance.entity.InstBank;
import com.yiji.fintech.musfinance.service.InstBankService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * center_inst_bank 管理控制器
 * 
 * @author ouwen
 * Date: 2017-09-20 13:40:22
 */
@Controller
@RequestMapping(value = "/manage/bank/instBank")
public class InstBankManagerController extends AbstractJQueryEntityController<InstBank, InstBankService> {
	

	{
		allowMapping = "*";
	}

	@SuppressWarnings("unused")
	@Autowired
	private InstBankService instBankService;
	@Autowired
	private CacheService cacheService;

	@Override
	protected InstBank doSave(HttpServletRequest request, HttpServletResponse response, Model model, boolean isCreate) throws Exception {
		InstBank instBank = super.doSave(request, response, model, isCreate);
		cacheService.doUpdateMutiCache(CacheConstant.CENTER_INSTBANK_MUTICACHE,InstBankService.class);//更新银行缓存
		return instBank;
	}
}
